const Router = require('@koa/router')//导入路由包
const router  = new Router()//实例化对象
router
    .get('/',(ctx,next)=>{
        ctx.body = `欢迎来到文章界面`
    })
    .post('/getArticle',(ctx,next)=>{
        ctx.body = [
            {
                title:'水浒传',author:'梨花'
            }
        ]
    })
// 导出
module.exports = router